<template>
  <el-container>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item>首页</el-breadcrumb-item>
      <el-breadcrumb-item>展会数字化管理</el-breadcrumb-item>
      <el-breadcrumb-item>展会信息管理</el-breadcrumb-item>
    </el-breadcrumb>
    <el-header style="height: auto;">
      <el-form inline>
        <el-form-item label="管理编号" size="mini">
          <el-input placeholder="管理编号"></el-input>
        </el-form-item>
        <el-form-item label="展会名称" size="mini">
          <el-input placeholder="展会名称"></el-input>
        </el-form-item>
        <el-form-item label="参展企业名称" size="mini">
          <el-input placeholder="参展企业名称"></el-input>
        </el-form-item>
        <el-form-item label="产品" size="mini">
          <el-input placeholder="产品"></el-input>
        </el-form-item>
        <el-form-item label="地点" size="mini">
          <el-input placeholder="地点"></el-input>
        </el-form-item>
        <el-form-item label="时间" size="mini">
          <el-date-picker
                type="date"
                placeholder="选择日期">
              </el-date-picker>
        </el-form-item>
        <el-form-item size="mini">
          <el-button icon="el-icon-search" type="primary">查询</el-button>
          <el-button icon="el-icon-refresh">重置</el-button>
        </el-form-item>
      </el-form>
    </el-header>
    <el-main>
      <el-row style="float: right; margin-bottom: 10px;">
        <el-button icon="el-icon-plus" size="mini" type="primary">新增</el-button>
        <el-button icon="el-icon-delete" size="mini" type="danger">删除</el-button>
        <el-button icon="el-icon-download" size="mini" type="warning">导出</el-button>
      </el-row>
      <el-table :cell-style="{ textAlign: 'center' }"
                :data="tableData" :header-cell-style="{ backgroundColor: '#f7f8fa', textAlign: 'center' }"
                size="mini">
        <el-table-column type="selection" />
        <el-table-column label="序号" prop="id"/>
        <el-table-column label="管理编号" prop="code"/>
        <el-table-column label="展会名称" prop="name"/>
        <el-table-column label="参展企业名称" prop="company"/>
        <el-table-column label="产品" prop="production"/>
        <el-table-column label="地点" prop="address"/>
        <el-table-column label="时间" prop="time"/>
        <el-table-column label="销量" prop="amount"/>
        <el-table-column label="参展图片" prop="pic">
          <template slot-scope="scope">
            <el-button title="点击上传" type="text">点击上传</el-button>
          </template>
        </el-table-column>

        <el-table-column label="操作">
          <template slot-scope="scope">
            <el-button icon="el-icon-edit" title="编辑" type="text"></el-button>
            <el-button icon="el-icon-circle-plus-outline" title="新增" type="text"></el-button>
            <el-button icon="el-icon-delete" style="color: red" title="删除" type="text"></el-button>
          </template>
        </el-table-column>
      </el-table>
      <el-pagination :total="3" layout="total, sizes, prev, pager, next, jumper" />
    </el-main>
  </el-container>
</template>

<script>
export default {
  data () {
    return {
      tableData: [
        {
          id: '1',
          code: 'D001',
          name: '农事博览会',
          company: 'xx企业',
          production: '荷兰豆',
          address: '西安市西安区长虹街道1024号',
          time: '2023年3月15日',
          amount: '5万'
        },
        {
          id: '2',
          code: 'D002',
          name: '潍坊寿光温室大棚博览会',
          company: 'xx企业',
          production: '西红柿、西葫芦等',
          address: '济南市历下区港沟街道23号',
          time: '2023年3月15日',
          amount: '5万'
        },
        {
          id: '3',
          code: 'D003',
          name: '秦安水蜜桃种植',
          company: 'xx企业',
          production: '水蜜桃',
          address: '滨州市邹平市黄山街道120号',
          time: '2023年3月15日',
          amount: '5万'
        }
      ]
    }
  }
}
</script>

<style scoped>
.el-breadcrumb {
  margin: 5px;
}
.el-container {
  background-color: #eef3fa;
  height: 100%;
  padding: 10px;
}
/* .el-form-item--mini.el-form-item {
  margin-bottom: 0;
} */
.el-header {
  background-color: white;
  margin: 10px 0;
  padding: 15px 30px;
}
.el-main {
  background-color: white;
}
.el-pagination {
  margin-top: 10px;
  text-align: right;
}
</style>
